import request from '@/utils/request';

// 用户模块

// 换届功能
export function alter(params) {
    return request({
        url: `/user/alter?id=${params}`,
        method: 'post',
    });
}

// 辩位修改
export function transitionPosition(params) {
    return request({
        url: `/user/alter/${params.id}/${params.position}`,
        method: 'post',
    });
}

// 密码修改
export function transitionPassword(params) {
    return request({
        url: `/user/alter/${params.id}/${params.oldPassword}/${params.newPassword}`,
        method: 'post',
    });
}

// 用户删除
